package com.dci.controller.project;

import com.dci.model.project.ProjectFundManagement;
import com.dci.service.project.ProjectFundManagementService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * All rights Reserved, Designed By 姑苏区政府大数据中心
 *
 * @version V1.0
 * @Title: null.java
 * @Package com.dci.controller.project
 * @Description: 项目资金管理
 * @author: 张星亮
 * @date: 2019/2/25
 * @Copyright: 2019 姑苏区政府大数据中心. All rights reserved.
 * 注意：本内容仅限于姑苏区政府大数据中心内部传阅，禁止外泄以及用于其他的商业目
 */
@Controller
@RequestMapping("/fundManagement")
public class ProjectFundManagementController {

    @Resource
    private ProjectFundManagementService projectFundManagementService;

    /**
     * 业务大类
     *
     * @return list集合
     */
    @PostMapping("/selectBig")
    @ResponseBody
    public List<ProjectFundManagement> selectByBig() {
        return projectFundManagementService.selectByBig();
    }

    /**
     * 业务中类
     *
     * @return list集合
     */
    @PostMapping("/selectMiddle")
    @ResponseBody
    public List<ProjectFundManagement> selectByMiddle(@RequestBody ProjectFundManagement projectFundManagement) {
        return projectFundManagementService.selectByMiddle(projectFundManagement);
    }

    /**
     * 业务小类
     *
     * @return list集合
     */
    @PostMapping("/selectSmall")
    @ResponseBody
    public List<ProjectFundManagement> selectBySmall(@RequestBody ProjectFundManagement projectFundManagement) {
        return projectFundManagementService.selectBySmall(projectFundManagement);
    }
}
